﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace h2100
{   
    static public class hGlobal
    {
        public enum Command { Undefined = -1, Quit, Play, Pause, Continue, Credits, EndTurn, ReturnToMainMenu, Action }
        public enum GameState { Undefined = -1, LoadFirstMenu, FirstMenu, LoadGame, Playing, Pause, End, Exit, Credits }
        public enum FontStyle { Bold, Regular, BoldMedium }
        public enum TextAlign { Left, Center, Right }
        public enum Turn { Player, Computer }
        public enum ControlPhase { NoAction, Action, SubAction, Selecting }
        public enum MapCellType
        {
            Unusable,
            BuildingPlatform,
            NormalTerrain,
            AbnormalTerrain,
            EnergyField,
            RawResourceField,
            EnemyBuildingPlatform
        }
        public enum UnitState
        {
            Appear,
            Stand,
            MoveUp,
            MoveDown, 
            MoveLeft,
            MoveRight,
            AttackUp,
            AttackDown,
            AttackLeft,
            AttackRight,
            Die
        }

        public const int ScreenWidth = 800;
        public const int ScreenHeight = 600;
        public const int ScreenCenterX = 400;
        public const int ScreenCenterY = 300;
        public const int ViewWidth = 800;
        public const int ViewHeight = 450;

        public const int MapCellWidth = 100;
        public const int MapCellHeight = 100;

        public const int ButtonEndTurnX = 515;
        public const int ButtonEndTurnY = 465;

        public const int ButtonMenuX = 515;
        public const int ButtonMenuY = 565;

        public const string ControlPanelTexture = "InfoPanel";
        public const int ControlPanelX = 0;
        public const int ControlPanelY = 450;
        public const int ControlPanelWidth = 800;
        public const int ControlPanelHeight = 150;

        public const string PathConfig = "Content/Config/";
        public const string ConfigMap = "Map.hcf";
        public const string ConfigTerrain = "Terrain.hcf";
        public const string ConfigStructure = "Structure.hcf";
        public const string PathGui = "Gui/";
        public const string PathMap = "Content/Maps/";
        public const string PathSructure = "Structure/";
        public const string PathTerrain = "Terrain/";
        public const string PathSkill = "Skill/";
        public const string PathUnit = "Unit/";

        public const string Button = "Button";
        public const string ButtonDisable = "Button_disable";        
        public const string ButtonSelected = "Button_purple";
        public const string ButtonLightGreen = "Button_green";
        public const string ButtonLightYellow = "Button_yellow";

        public const string ButtonMini = "Button_mini";
        public const string ButtonDisableMini = "Button_disable_mini";
        public const string ButtonSelectedMini = "Button_purple_mini";
        public const string ButtonLightGreenMini = "Button_green_mini";
        public const string ButtonLightYellowMini = "Button_yellow_mini";

        public const string MenuBackground = "Menu_background";     

        public const string FontRegular = "Font_regular";
        public const string FontBold = "Font_bold";
        public const string FontBoldMedium = "Font_bold_medium";  

        //public const string ActionButtonUndefined = "ControlPanel_actionbutton_undefined";
        //public const string ActionButtonUpgrade = "ControlPanel_actionbutton_upgrade";
        //public const string ActionButtonDisable = "ControlPanel_actionbutton_disable";
        //public const string ActionButtonUpgradeWeapon = "ControlPanel_actionbutton_upgrade_weapon";
        //public const string ActionButtonUpgradeArmor = "ControlPanel_actionbutton_upgrade_armor";
        //public const string ActionButtonBuild = "ControlPanel_actionbutton_build";
        //public const string ActionButtonAttack = "ControlPanel_actionbutton_attack";
        //public const string ActionButtonScan = "ControlPanel_actionbutton_scan";
        //public const string ActionButtonBuildHouse = "ControlPanel_actionbutton_build_house";
        //public const string ActionButtonBuildBunker = "ControlPanel_actionbutton_build_bunker";
        //public const string ActionButtonBuildLab = "ControlPanel_actionbutton_build_lab";
        //public const string ActionButtonBuildEnergyProcessor = "ControlPanel_actionbutton_build_energyprocessor";
        //public const string ActionButtonBuildRawResourceProcessor = "ControlPanel_actionbutton_build_rawresourceprocessor";
        //public const string ActionButtonBuildAirProcessor = "ControlPanel_actionbutton_build_airprocessor";
        //public const string ActionButtonBuildAltar = "ControlPanel_actionbutton_build_altar";
    }
}
